package com.dzsw.zk.util;

public class NumberUtil {

    public static long giveUpNum(long num, int giveUpNum) {
        long result = num;
        long tmp = num;
        int i = 0;
        do {
            if ((tmp % 10) == giveUpNum) {
                result = result + (long)Math.pow(10, i);
            }
            tmp = tmp / 10;
            i++;
        } while(tmp > 0); // 当tmp小于等于0退出
        return result;
    }
}
